package business.datacenter.impl;

import business.datacenter.HZCreditPermissionService;
import datacenter.domain.HZCreditPermission;
import datacenter.mapper.HZCreditPermissionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/13.
 */
@Service(value = "permissionService")
public class HZCreditPermissionServiceImpl implements HZCreditPermissionService {

    @Autowired
    private HZCreditPermissionMapper hzCreditPermissionMapper;

    @Override
    public void savehzCreditPermissionService(List<HZCreditPermission> entities) {
        for(HZCreditPermission entity:entities) {
            hzCreditPermissionMapper.insertSelective(entity);
        }

    }
}
